<?php

use think\facade\Route;

Route::group('iot',function () {

});

//物联网平台
Route::group('iot',function () {
    $consultantPrefix = 'iot.equipment_management.';
    /*物联网设备管理*/
    Route::group('equipmentManagement', function () {
        Route::post('get_level_tree', 'getLevelTree'); //获取层级树
        Route::post('add_room', 'addRoom'); //新增功能室
        Route::post('get_room_list', 'getRoomList'); //获取功能室列表
        Route::post('del_room', 'delRoom'); //删除功能室列表

        Route::post('get_room_device', 'getRoomDevice'); //获取功能室设备列表
        Route::post('get_device_category', 'getDeviceCategory'); //获取设备分类
        Route::post('add_room_device', 'addRoomDevice'); //新增设备
        Route::post('get_device_list', 'getDeviceList'); //获取设备列表
        Route::post('get_device_all_data', 'getDeviceAllData'); //获取设备列表所有ID
        Route::post('edit_device', 'editDevice'); //编辑设备
        Route::post('del_device', 'delDevice'); //删除设备
        Route::post('get_device_info', 'getDeviceInfo'); //获取设备基本情况
        Route::post('get_device_users', 'getDeviceUsers'); //获取设备的用户列表
        Route::post('get_class_list', 'getClassList'); //获取设备的班级
        Route::post('get_usage_record', 'getUsageRecord'); //获取设备用户的使用记录
        Route::post('get_user_details', 'getUserDetails'); //获取用户使用记录
        Route::post('audit', 'audit'); //审核
        Route::post('get_message_details', 'getMessageDetails'); //获取消息详情
        Route::post('reply_message', 'replyMessage'); //回复消息
    })->prefix($consultantPrefix.'EquipmentManagement/');

    /*统计*/
    $statistics = 'iot.statistics.';
    Route::group('statisticsDate', function () {
        Route::post('number_of_devices', 'numberOfDevices'); //获取设备数量
        Route::post('iot_overview', 'iotOverview'); //物联网数据概况
        Route::post('module_monitoring', 'moduleMonitoring'); //功能模块监测统计
        Route::post('user_device_statistic', 'userDeviceStatistic'); //各设备用户占比统计
        Route::post('ranking', 'Ranking'); //功能室使用排行
    })->prefix($statistics.'StatisticsDate/');

    /*功能室预约记录*/
    $statistics = 'iot.reservation.';
    Route::group('reservation', function () {
        Route::post('set', 'set'); //存储缓存
        Route::post('get', 'get'); //获取缓存
        Route::post('blackout_duration', 'blackoutDuration'); //拉黑时长选择器
        Route::post('black_reason', 'blackReason'); //拉黑原因选择器
        Route::post('ranking', 'ranking'); //功能室预约排行
        Route::post('room_option', 'roomOption'); //功能室选项
        Route::post('update', 'update'); //设置功能室开放时段
        Route::post('moon_view', 'moonView'); //月排班视图
        Route::post('info', 'info'); //预约详情
        Route::post('update_info', 'updateInfo'); //编辑预约详情
        Route::post('add_blacklist', 'addBlacklist'); //加入黑名单
        Route::post('blacklist', 'blacklist'); //黑名单
        Route::post('delete_blacklist', 'deleteBlacklist'); //删除黑名单
    })->prefix($statistics.'Index/');
});

//用户档案
Route::group('user_profile',function () {

    /*查阅档案登记*/
    $consultantPrefix = 'user_profile.registration.';
    Route::group('registration', function () {
        Route::post('add_record', 'addRecord'); //添加登记记录
        Route::post('record_list', 'recordList'); //登记记录列表
        Route::post('refresh_record', 'refreshRecord'); //刷新权限
    })->prefix($consultantPrefix.'Registration/');

    /*用户档案库*/
    $Archive = 'user_profile.userArchive.';
    Route::group('userArchive', function () {
        Route::post('get_list', 'getList'); //获取档案列表
        Route::post('get_permission', 'getPermission'); //获取查阅权限
        Route::post('get_class', 'getClass'); //部门选择-树结构

        //用户基本信息
        $selfTesting = 'user_profile.userArchive.basicInfo.';
        Route::group('basicInfo', function () {
            Route::post('export_basic_info', 'exportBasicInfo'); //导出基础资料
        })->prefix($selfTesting.'BasicInfo/');

        //个人自评档案
        $selfTesting = 'user_profile.userArchive.selfTesting.';
        Route::group('selfTesting', function () {
            Route::post('get_overview', 'getOverview'); //自评档案概况
            Route::post('get_recode', 'getRecode'); //个人自评记录
            Route::post('export_recode', 'exportRecode'); //导出个人自评详情里的记录
        })->prefix($selfTesting.'SelfTesting/');

        //危机干预档案
        $selfTesting = 'user_profile.userArchive.crisisTesting.';
        Route::group('crisisTesting', function () {
            Route::post('get_overview', 'getOverview'); //危机干预概况
            Route::post('get_recode', 'getRecode'); //危机干预记录
        })->prefix($selfTesting.'CrisisTesting/');

        //咨询预约档案
        $selfTesting = 'user_profile.userArchive.psychologicalCounseling.';
        Route::group('psychologicalCounseling', function () {
            Route::post('get_overview', 'getOverview'); //咨询预约概况
            Route::post('get_online_recode', 'getOnlineRecode'); //线上咨询记录
            Route::post('get_offline_recode', 'getOfflineRecode'); //线下预约记录
            Route::post('get_evaluate_recode', 'getEvaluateRecode'); //评估记录
        })->prefix($selfTesting.'PsychologicalCounseling/');

        //测评档案
        $selfTesting = 'user_profile.userArchive.evaluationArchive.';
        Route::group('evaluationArchive', function () {
            Route::post('get_overview', 'getOverview'); //测评档案概况
            Route::post('get_self_recode', 'getSelfRecode'); //自我测评记录
            Route::post('get_task_recode', 'getTaskRecode'); //任务测评记录
            Route::post('get_proxy_recode', 'getProxyRecode'); //他人测评记录
            Route::post('get_wireless_recode', 'getWirelessRecode'); //无线测评记录
        })->prefix($selfTesting.'EvaluationArchive/');

        Route::post('delete_recode', 'deleteRecode'); //删除档案
        Route::post('check_repeal_archive', 'checkRepealArchive'); //验证废除档案是否有之前废弃的，【0：有，1：没有】
        Route::post('is_show', 'isShow'); //显示隐藏【正常档案与废弃档案的左边的三级菜单显示与隐藏】

    })->prefix($Archive.'UserArchive/');

    /*废除档案库*/
    $repealArchivePrefix = 'user_profile.repealArchive.';
    Route::group('repealArchive', function () {
        Route::post('record_list', 'recordList'); //废除档案库列表
        Route::post('record_list_all', 'recordListAll'); //废除档案库列表所有数据ID
        Route::post('restore_record_status', 'restoreRecordStatus'); //还原废弃档案查询是否有正常档案
        Route::post('restore_record', 'restoreRecord'); //还原废弃档案
        Route::post('delete_record', 'deleteRecord'); //彻底删除废弃档案
    })->prefix($repealArchivePrefix.'RepealArchive/');
});


//区域
Route::group('platform',function () {
    $prefix = 'platform';
    //测评任务-进行中
    Route::group('use_task', function () {
            Route::post('index', 'index'); //任务列表
        Route::post('create_task', 'CreateTask'); //创建任务
        Route::post('submit_report', 'SubmitReport'); //上交报告
        Route::post('del', 'del'); //删除任务
        Route::post('end', 'end'); //终止任务
    })->prefix($prefix.'.task.UseTask/');
    //测评任务-已结束
    Route::group('end_task', function () {
        Route::post('index', 'index'); //任务列表
        Route::post('info', 'info'); //任务列表
        Route::post('publisher_selector', 'publisherSelector'); //发布人选择器
    })->prefix($prefix.'.task.EndTask/');
});

//文章
Route::group('article',function () {
    $prefix = 'article';
    //配置
    Route::group('config', function () {
        Route::post('type_list', 'TypeList'); //类型列表
        Route::post('type_add', 'TypeAdd'); //类型添加
        Route::post('type_edit', 'TypeEdit'); //类型修改
        Route::post('type_del', 'TypeDel'); //类型删除
        Route::post('list', 'List'); //文章列表
        Route::post('info', 'info'); //文章详情
        Route::post('add', 'Add'); //文章添加
        Route::post('edit', 'Edit'); //文章编辑
        Route::post('del', 'Del'); //文章删除
        Route::post('del_all', 'DelAll'); //文章批量删除
        Route::post('edit_type', 'EditType'); //文章修改类型
        Route::post('batch_add', 'batchAdd'); //文章批量添加
    })->prefix($prefix.'.config.Index/');
    //列表
    Route::group('list', function () {
        Route::post('type_list', 'TypeList'); //类型列表
        Route::post('index', 'index'); //列表
        Route::post('info', 'info'); //文章详情-开始阅读
        Route::post('collect', 'collect'); //文章收藏
        Route::post('cancel_collect', 'cancelCollect'); //文章取消收藏
        Route::post('recommend', 'recommend'); //推荐文章
    })->prefix($prefix.'.list.Index/');
});

//图片
Route::group('pic',function () {
    $prefix = 'pic';
    //配置
    Route::group('config', function () {
        Route::post('type_list', 'TypeList'); //类型列表
        Route::post('type_add', 'TypeAdd'); //类型添加
        Route::post('type_edit', 'TypeEdit'); //类型修改
        Route::post('type_del', 'TypeDel'); //类型删除
        Route::post('list', 'List'); //图片列表
        Route::post('info', 'info'); //图片详情
        Route::post('add', 'Add'); //图片添加
        Route::post('edit', 'Edit'); //图片编辑
        Route::post('del', 'Del'); //图片删除
        Route::post('del_all', 'DelAll'); //图片批量删除
        Route::post('edit_type', 'EditType'); //图片修改类型
        Route::post('batch_add', 'batchAdd'); //图片批量添加
    })->prefix($prefix.'.config.Index/');
    //列表
    Route::group('list', function () {
        Route::post('type_list', 'TypeList'); //类型列表
        Route::post('index', 'index'); //列表
        Route::post('collect', 'collect'); //收藏
        Route::post('cancel_collect', 'cancelCollect'); //取消收藏
    })->prefix($prefix.'.list.Index/');
});

//音乐
Route::group('music',function () {
    $prefix = 'music';
    //配置
    Route::group('config', function () {
        Route::post('type_list', 'TypeList'); //类型列表
        Route::post('type_add', 'TypeAdd'); //类型添加
        Route::post('type_edit', 'TypeEdit'); //类型修改
        Route::post('type_del', 'TypeDel'); //类型删除
        Route::post('list', 'List'); //音乐列表
        Route::post('info', 'info'); //音乐详情
        Route::post('add', 'Add'); //音乐添加
        Route::post('edit', 'Edit'); //音乐编辑
        Route::post('del', 'Del'); //音乐删除
        Route::post('del_all', 'DelAll'); //音乐批量删除
        Route::post('edit_type', 'EditType'); //音乐修改类型
        Route::post('batch_add', 'batchAdd'); //音乐批量添加
    })->prefix($prefix.'.config.Index/');
    //列表
    Route::group('list', function () {
        Route::post('type_list', 'TypeList'); //类型列表
        Route::post('index', 'index'); //列表
        Route::post('collect', 'collect'); //收藏
        Route::post('cancel_collect', 'cancelCollect'); //取消收藏
    })->prefix($prefix.'.list.Index/');
});

//视频
Route::group('video',function () {
    $prefix = 'video';
    //配置
    Route::group('config', function () {
        Route::post('type_list', 'TypeList'); //类型列表
        Route::post('type_add', 'TypeAdd'); //类型添加
        Route::post('type_edit', 'TypeEdit'); //类型修改
        Route::post('type_del', 'TypeDel'); //类型删除
        Route::post('list', 'List'); //视频列表
        Route::post('info', 'info'); //视频详情
        Route::post('add', 'Add'); //视频添加
        Route::post('edit', 'Edit'); //视频编辑
        Route::post('del', 'Del'); //视频删除
        Route::post('del_all', 'DelAll'); //视频批量删除
        Route::post('edit_type', 'EditType'); //视频修改类型
        Route::post('batch_add', 'batchAdd'); //视频批量添加
    })->prefix($prefix.'.config.Index/');
    //列表
    Route::group('list', function () {
        Route::post('type_list', 'TypeList'); //类型列表
        Route::post('index', 'index'); //列表
        Route::post('collect', 'collect'); //收藏
        Route::post('cancel_collect', 'cancelCollect'); //取消收藏
    })->prefix($prefix.'.list.Index/');
});

//问卷
Route::group('questionnaire',function () {
    $prefix = 'questionnaire';
    //配置-类型
    Route::group('config_type', function () {
        Route::post('list', 'list'); //类型列表
        Route::post('add', 'add'); //类型添加
        Route::post('update', 'update'); //类型编辑
        Route::post('del', 'del'); //类型删除
    })->prefix($prefix.'.config.Type/');
    //配置-题库
    Route::group('config_topic', function () {
        Route::post('label_selector', 'labelSelector'); //标签选择器
        Route::post('type_selector', 'typeSelector'); //类型选择器
        Route::post('editor_selector', 'editorSelector'); //编辑人选择器
        Route::post('score_selector', 'scoreSelector'); //分数选择器
        Route::post('list', 'list'); //题库列表
        Route::post('info', 'info'); //题目详情
        Route::post('add', 'add'); //题库添加
        Route::post('update', 'update'); //题库编辑
        Route::post('del', 'del'); //题库删除
    })->prefix($prefix.'.config.Topic/');
    //配置-问卷
    Route::group('config_paper', function () {
        Route::post('type_list', 'typeList'); //问卷分类列表
        Route::post('list', 'list'); //问卷列表
        Route::post('info', 'info'); //问卷详情
        Route::post('add', 'add'); //问卷添加
        Route::post('update', 'update'); //问卷编辑
        Route::post('del', 'del'); //问卷删除
        Route::post('status', 'status'); //问卷删除
        Route::post('topic_info_list', 'topicInfoList'); //题目详情（多个）
    })->prefix($prefix.'.config.Paper/');

    //发布问卷任务
    Route::group('publish_task', function () {
        Route::post('index', 'index'); //发布任务
        Route::post('paper_selector', 'PaperSelector'); //试卷选择器
    })->prefix($prefix.'.publish_task.Index/');
    //已发布问卷任务
    Route::group('published', function () {
        Route::post('index', 'index'); //已发布问卷任务
        Route::post('info', 'info'); //任务详情
        Route::post('update2', 'update2'); //编辑进行中的任务
        Route::post('update', 'update'); //编辑任务
        Route::post('terminate_task', 'terminateTask'); //终止任务
        Route::post('task_status', 'taskStatus'); //查询任务状态
        Route::post('del', 'del'); //任务删除
    })->prefix($prefix.'.published.Index/');
    //答卷结果
    Route::group('result', function () {
        Route::post('publisher_selector', 'publisherSelector'); //发布人选择器
        Route::post('index', 'index'); //答卷结果列表
        Route::post('get_task_paper', 'getTaskPaper'); //获取任务试卷
        Route::post('get_task_user', 'getTaskUser'); //获取任务用户
        Route::post('task_overview', 'taskOverview'); //答卷结果整体概况
        Route::post('task_paper_left_survey', 'taskPaperLeftSurvey'); //问卷结果-左测概况
        Route::post('task_user_department', 'taskUserDepartment'); //任务用户部门树
        Route::post('result_info', 'resultInfo'); //结果详情
        Route::post('comment', 'comment'); //结果点评
        Route::post('result_read_auth', 'resultReadAuth'); //修改权限
        Route::post('del', 'del'); //删除整个任务的报告
        Route::post('task_paper_result_del', 'taskPaperResultDel'); //删除任务单个问卷的全部报告
        Route::post('result_del', 'resultDel'); //删除单份报告
        Route::post('export_task_user', 'exportTaskUser'); //导出任务用户名单
    })->prefix($prefix.'.result.Index/');
    //答卷结果
    Route::group('statistics', function () {
        Route::post('people_num', 'peopleNum'); //问卷任务参与人数统计
        Route::post('time', 'time'); //参与人数时段统计
        Route::post('paper_type', 'paperType'); //问卷库统计
        Route::post('topic_type', 'topicType'); //题目类型统计
        Route::post('label', 'label'); //题目标签统计
        Route::post('result', 'result'); //答题结果统计
    })->prefix($prefix.'.statistics.Index/');
});


//心灵智慧树
Route::group('tree',function () {
    $prefix = 'tree';
    //配置-敏感词
    Route::group('config_sensitive_words', function () {
        Route::post('index', 'index'); //敏感词列表
        Route::post('add', 'add'); //敏感词添加
        Route::post('update', 'update'); //敏感词编辑
        Route::post('del', 'del'); //敏感词删除
        Route::post('import', 'import'); //导入
    })->prefix($prefix.'.config.SensitiveWords/');
    //配置-智慧果收发设置
    Route::group('config_info', function () {
        Route::post('index', 'index'); //智慧果收发设置-信息
        Route::post('update', 'update'); //智慧果收发设置-保存
    })->prefix($prefix.'.config.Info/');
    //配置-智慧果管理
    Route::group('config_fruit', function () {
        Route::post('index', 'index'); //智慧果管理列表
        Route::post('info', 'info'); //智慧果详情
        Route::post('add', 'add'); //智慧果添加
        Route::post('del', 'del'); //智慧果删除
        Route::post('comment_status', 'commentStatus'); //是否开启评论
        Route::post('update_status', 'updateStatus'); //修改状态
        Route::post('import', 'import'); //导入
        Route::post('download_template', 'downloadTemplate'); //下载模板
    })->prefix($prefix.'.config.Fruit/');
    //收取智慧果
    Route::group('collect', function () {
        Route::post('index', 'index'); //随机收取
        Route::post('like', 'like'); //点赞
        Route::post('comment', 'comment'); //评论
    })->prefix($prefix.'.collect.Index/');
    //收投记录
    Route::group('log', function () {
        Route::post('user_info', 'userInfo'); //我在智慧树上的个人信息
        Route::post('collect_list', 'collectList'); //我收取的智慧果
        Route::post('info', 'info'); //智慧果-查看
        Route::post('del', 'del'); //删除收取记录
        Route::post('apply_real_name', 'applyRealName'); //申请实名
        Route::post('follow', 'follow'); //加入关注人群
    })->prefix($prefix.'.log.Index/');
});


//团体活动
Route::group('group_activity',function () {
    $prefix = 'group_activity';
    //配置
    Route::group('config', function () {
        Route::post('type_list', 'TypeList'); //类型列表
        Route::post('type_add', 'TypeAdd'); //类型添加
        Route::post('type_edit', 'TypeEdit'); //类型修改
        Route::post('type_del', 'TypeDel'); //类型删除
        Route::post('type_status', 'TypeStatus'); //修改类型状态
        Route::post('type_info', 'TypeInfo'); //获取类型信息
    })->prefix($prefix.'.config.Index/');
    //发布活动
    Route::group('publish_task', function () {
        Route::post('index', 'index'); //发布活动
        Route::post('type_selector', 'typeSelector'); //类型选择器
        Route::post('get_department_name', 'getDepartmentName'); //获取部门名称
        Route::post('get_rating_scale', 'getRatingScale'); //获取量表内容
    })->prefix($prefix.'.publish_task.Index/');
    //已发布活动
    Route::group('published', function () {
        Route::post('callable_view', 'callableView'); //设置查看权限
        Route::post('add_follow', 'addFollow'); //加入关注
        Route::post('task_status', 'taskStatus'); //查询任务状态
        Route::post('index', 'index'); //已发布活动
        Route::post('update_info', 'updateInfo'); //活动编辑详情
        Route::post('del', 'del'); //删除活动
        Route::post('update', 'update'); //活动编辑
        Route::post('audit_list', 'auditList'); //报名列表
        Route::post('audit', 'audit'); //审核
        Route::post('user_result', 'userResult'); //用户量表测评结果
        Route::post('user_result2', 'userResult2'); //用户量表测评结果
        Route::post('info', 'info'); //详情
        Route::post('publisher_selector', 'PublisherSelector'); //发布人选择器
        Route::post('end', 'end'); //结束活动
        Route::post('statistics', 'statistics'); //活动数据统计
        Route::post('comment_list', 'commentList'); //用户评论反馈
        Route::post('sign_list', 'signList'); //签到列表
        Route::post('summarize', 'summarize'); //总结
        Route::post('leave_info', 'leaveInfo'); //请假详情
        Route::post('audit_leave', 'auditLeave'); //审核请假
        Route::post('audit_export', 'auditExport'); //报名审核列表导出
        Route::post('audit_export2', 'auditExport2'); //报名已允许列表导出
        Route::post('audit_export3', 'auditExport3'); //报名已拒绝列表导出
        Route::post('sign_export', 'signExport'); //正常签到名单导出
        Route::post('sign_export2', 'signExport2'); //未签到名单导出
    })->prefix($prefix.'.published.Index/');
});




//心理学堂
Route::group('school',function () {
    $prefix = 'school';
    //课程
    Route::group('course', function () {
        Route::post('editor_selector', 'editorSelector'); //添加课程
        Route::post('add', 'add'); //添加课程
        Route::post('update', 'update'); //课程编辑
        Route::post('index', 'index'); //课程列表
        Route::post('del', 'del'); //删除课程
        Route::post('status', 'status'); //修改状态
        Route::post('info', 'info'); //课程详情
        Route::post('learning_situation', 'LearningSituation'); //学习情况列表
        Route::post('learning_situation_info', 'LearningSituationInfo'); //学习情况详情
        Route::post('comment_del', 'commentDel'); //删除评论
        Route::post('learning_del', 'learningDel'); //删除学习记录
        Route::post('report_info', 'reportInfo'); //结果详情
    })->prefix($prefix.'.course.Index/');
    //统计
    Route::group('statistics', function () {
        Route::post('ranking', 'ranking'); //课程排行
        Route::post('learning_num', 'learningNum'); //学习人数
        Route::post('evaluation', 'evaluation'); //章节测试任务报告预警统计
        Route::post('use', 'use'); //使用人数
        Route::post('other', 'other'); //其他
    })->prefix($prefix.'.statistics.Index/');
});


//培训讲座
Route::group('training',function () {
    $prefix = 'training';
    //设置
    Route::group('config', function () {
        Route::post('lecturer_list', 'lecturerList'); //讲师列表
        Route::post('lecturer_info', 'lecturerInfo'); //讲师详情
        Route::post('lecturer_add', 'lecturerAdd'); //添加讲师
        Route::post('lecturer_update', 'lecturerUpdate'); //编辑讲师
        Route::post('lecturer_del', 'lecturerDel'); //删除讲师
        Route::post('textbook_type', 'textbookType'); //教材类型
        Route::post('textbook_type_add', 'textbookTypeAdd'); //添加教材类型
        Route::post('textbook_type_update', 'textbookTypeUpdate'); //编辑教材类型
        Route::post('textbook_type_del', 'textbookTypeDel'); //删除教材类型
        Route::post('textbook_add', 'textbookAdd'); //添加教材
        Route::post('textbook_list', 'textbookList'); //教材列表
        Route::post('textbook_info', 'textbookInfo'); //教材详情
        Route::post('textbook_del', 'textbookDel'); //删除教材
        Route::post('textbook_update', 'textbookUpdate'); //编辑教材
        Route::post('textbook_status', 'textbookStatus'); //修改教材启用状态
        Route::post('type_list', 'typeList'); //讲座类型列表
        Route::post('type_add', 'typeAdd'); //添加讲座类型
        Route::post('type_info', 'typeInfo'); //类型详情
        Route::post('type_update', 'typeUpdate'); //编辑类型
        Route::post('type_del', 'typeDel'); //删除类型
        Route::post('type_status', 'typeStatus'); //修改类型启用状态
    })->prefix($prefix.'.config.Index/');
    //发布
    Route::group('release', function () {
        Route::post('textbook_selector', 'textbookSelector'); //教材选择器
        Route::post('type_selector', 'typeSelector'); //讲座类型选择器
        Route::post('lecturer_selector', 'lecturerSelector'); //讲师选择器
        Route::post('index', 'index'); //发布培训
    })->prefix($prefix.'.release.Index/');
    //已发布
    Route::group('published', function () {
        Route::post('callable_view', 'callableView'); //设置查看权限
        Route::post('add_follow', 'addFollow'); //加入关注
        Route::post('task_status', 'taskStatus'); //查询任务状态
        Route::post('publisher_selector', 'publisherSelector'); //发布人选择器
        Route::post('index', 'index'); //已发布培训列表
        Route::post('del', 'del'); //删除发布记录
        Route::post('info', 'info'); //发布信息（用于编辑）
        Route::post('update', 'update'); //编辑发布记录
        Route::post('details', 'details'); //已发布详情
        Route::post('registration_list', 'registrationList'); //报名名单列表
        Route::post('participation_details', 'participationDetails'); //参与详情
        Route::post('log_del', 'logDel'); //删除参与记录
        Route::post('audit', 'audit'); //审核报名
        Route::post('leave_info', 'leaveInfo'); //请假详情
        Route::post('audit_leave', 'auditLeave'); //审核请假
        Route::post('end', 'end'); //结束讲座
        Route::post('audit_export', 'auditExport'); //导出报名待审核名单
        Route::post('audit_export2', 'auditExport2'); //导出报名已允许名单
        Route::post('audit_export3', 'auditExport3'); //导出报名已拒绝名单
        Route::post('participating_users', 'participatingUsers'); //参与用户
    })->prefix($prefix.'.published.Index/');
    //统计
    Route::group('statistics', function () {
        Route::post('figure1', 'figure1'); //图1
        Route::post('figure2', 'figure2'); //图2
        Route::post('figure3', 'figure3'); //图3
        Route::post('figure4', 'figure4'); //图4
        Route::post('figure5', 'figure5'); //图5
        Route::post('figure6', 'figure6'); //图6
    })->prefix($prefix.'.statistics.Index/');
});

//部门任务-二维码
Route::group('code',function () {
    $prefix = 'code';
    //任务
    Route::group('task', function () {
        Route::post('releaseTask', 'release'); //发布
        Route::post('update', 'update'); //编辑
        Route::post('update2', 'update2'); //编辑
        Route::post('taskList', 'releaseList'); //发布列表
        Route::post('TaskInfo', 'info'); //详情
        Route::post('taskEvaluationReportList', 'reportList'); //报告列表
        Route::post('taskEvaluationReportInfo', 'reportInfo'); //报告详情
        Route::post('TaskEvaluationUserDepartment', 'reportUserDepartment'); //任务测评用户部门
        Route::post('TaskGroupReport', 'codeTaskGroupReport'); //二维码-任务测评团体报告
        Route::post('TaskEvaluationReport', 'personReport'); //个人报告
        Route::post('taskStatus', 'taskStatus'); //查询任务状态
        Route::post('del', 'del'); //删除任务
        Route::post('terminateTask', 'terminateTask'); //终止任务
        Route::post('getTaskRatingScale', 'getTaskRatingScale'); //获取任务量表
        Route::post('PublisherSelector', 'PublisherSelector'); //发布人身份选择器
        Route::post('PublisherSelector2', 'PublisherSelector2'); //发布人选择器
        Route::post('getTaskUser', 'getTaskUser'); //获取任务用户
        Route::post('taskEvaluationReportDel', 'taskEvaluationReportDel'); //删除任务测评报告
        Route::post('filter', 'filter'); //已发布任务记录-高级筛选
        Route::post('taskRatingScaleReportDel', 'taskRatingScaleReportDel'); //删除任务对应量表的报告
        Route::post('taskCode', 'taskCode'); //生成过期码
    })->prefix($prefix.'.task.Index/');
});

//转介
Route::group('referral',function () {
    $prefix = 'referral';
    //绑定转介机构（配置）
    Route::group('config', function () {
        Route::post('agency', 'agency'); //机构
        Route::post('bing_log', 'bingLog'); //已绑定记录
        Route::post('bind', 'bind'); //申请绑定
        Route::post('del_bind', 'delBind'); //解除绑定
    })->prefix($prefix.'.config.Index/');
    //转介记录
    Route::group('log', function () {
        Route::post('department_selector', 'departmentSelector'); //部门选择器
        Route::post('user_selector', 'userSelector'); //用户选择器
        Route::post('level_selector', 'levelSelector'); //风险程度
        Route::post('initiate', 'initiate'); //发起转介
        Route::post('index', 'index'); //转介记录
        Route::post('info', 'info'); //记录详情
        Route::post('delete', 'delete'); //删除记录
        Route::post('export', 'export'); //导出记录
    })->prefix($prefix.'.log.Index/');
});

//职业规划
Route::group('metier',function () {
    $prefix = 'metier';
    //分享
    Route::group('share', function () {
        Route::post('user_selector', 'userSelector'); //上传人选择器
        Route::post('list', 'list'); //列表
        Route::post('info', 'info'); //详情
        Route::post('add', 'add'); //添加
        Route::post('update', 'update'); //更新
        Route::post('delete', 'delete'); //删除
    })->prefix($prefix.'.share.Index/');
    //名录
    Route::group('directory', function () {
        Route::post('list', 'list'); //列表
        Route::post('info', 'info'); //详情
        Route::post('add', 'add'); //添加
        Route::post('update', 'update'); //更新
        Route::post('delete', 'delete'); //删除
    })->prefix($prefix.'.directory.Index/');
});

//ai
Route::group('ai',function () {
    $prefix = 'ai';
    //分享
    Route::group('index', function () {
        Route::rule('chat', 'chat');
        Route::rule('chatStream', 'chatStream');
    })->prefix($prefix.'.index.Index/');
});

